/*
package Demo1;

import java.io.PrintStream;

*/
/**
 * User:langchen
 * Date:2022-08-05
 * Time:16:50
 *//*

public class Person {
    public String name;
    public String sex;
    public int hight;
    public static int weight = 60;
    public void gethight(){
        System.out.println(18);
    }
    public static int getWeight(){
        gethight();
        return weight;
    }
    public static void main(String[] args) {
        System.out.println(Person.getWeight());
        // 静态成员变量可以直接通过类名访问
        */
/*System.out.println(Person.weight);*//*

        // 也可以通过对象访问：但是classRoom是三个对象共享的
       */
/* Person p1 = new Person();
        Person p2 = new Person();
        Person p3 = new Person();
        System.out.println(p1.weight);
        System.out.println(p2.weight);
        System.out.println(p3.weight);*//*

    }
}
*/
